mod wasm;

use std::sync::{Arc, Mutex};

use model_graph_types::container::workflow::{WasmStatement, WorkflowBlockExecuteResult};

use crate::workflow::context::WorkflowContext;

pub async fn wasm_execute(
    statement: &WasmStatement,
    context: Arc<Mutex<WorkflowContext>>,
) -> anyhow::Result<WorkflowBlockExecuteResult> {
    //获取请求的方法
    return wasm::execute(statement, context).await;
}
